package com.lottery.material.entity.portaluser;

import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Description：用户点赞记录表
 * Created by 朱正磊 on 2019-04-09 10:32
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_user_like_record")
public class UserLikeRecord extends BaseEntity {

    private static final long serialVersionUID = -3840615750719487776L;

    @Column(columnDefinition = "varchar(50) not null comment '用户id'")
    private String userId;

    @Column(columnDefinition = "int(1) comment '点赞类型（1：文章；2：评论）'")
    private Integer likeType;

    @Column(columnDefinition = "int(11) comment '文章/评论id'")
    private Integer objectId;

}
